Advanced HTML Questions Breakdown to Crack Any Interview:

Level          Type

Advanced                      Accessibility, SEO tags, HTML5 APIs (like localStorage, drag & drop)

1. What is localStorage in HTML5?
Ans:
 A Web Storage API that stores key-value data in the browser with no expiration.

2. What are meta tags used for?
Ans:
hey provide metadata like page description, keywords, charset, and viewport settings for responsive design.

3. What is the difference between HTML and HTML5?
Ans:
HTML5 supports semantic tags, multimedia, offline storage, new APIs (like geolocation), and more.

4. How to make a website mobile responsive in HTML?
Ans:
Use the viewport meta tag:
<meta name="viewport" content="width=device-width, initial-scale=1.0">

5. What is accessibility in HTML?
Ans:
Making web content usable for people with disabilities using ARIA attributes, semantic tags, and proper labeling.

6. What is the required attribute in forms?
Ans:
It makes a field mandatory before form submission.

7. How can you create a dropdown list?
Ans:
<select>
    <option>Option 1</option>
    <option>Option 2</option>
  </select>  

8.What are deprecated tags?
Ans:
Tags that are no longer recommended in HTML5 like <font>, <center>, <bgsound>.

9. What is the use of the <iframe> tag?
Ans:
Embeds another HTML page or document inside the current page.

10. What is progressive enhancement in HTML?
Ans:
Building a basic, functional site using HTML and enhancing it with CSS/JavaScript for modern browsers.



Comments

Popular posts from this blog

PHP INTERVIEW QUESTIONS

PHP Intermediate Questions Interview Preparation

PHP Interview Questions (Beginner Level) – Short Answers